package com.ls.datasource;

public enum DataSourceType {

	MASTER("master", "从库"),
	SLAVE("slave", "主库");
	
    private String code;
    
    private String name;

    DataSourceType(String code, String name) {
        this.code = code;
        this.name = name;
    }

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
    
}
